package jee.boot.module.authority.dao;

import jee.boot.common.basic.TreeDao;
import jee.boot.entity.auth.Resource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 资源
 */
@Mapper
public interface ResourceDao extends TreeDao<Resource> {

	@Override
	List<Resource> findList(Resource entity);

	@Select("<script>${findListSql} <where> ${where} </where> ${orderBySql}</script>")
	List<Resource> newFindList(Resource entity);

	List<Resource> publishList(Resource entity);

}